package com.zyx.deliveryman.server.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import com.zyx.deliveryman.server.common.enums.DeliverymanStatus;
import lombok.Data;

/**
 * @author Yaxi.Zhang
 * @since 2022/10/22 08:10
 */
@Data
@TableName(value = "deliveryman")
public class DeliverymanPO {
    /**
     * 骑手id
     */
    @TableId(value = "id", type = IdType.NONE)
    private Integer id;

    /**
     * 名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 状态
     */
    @TableField(value = "`status`")
    private DeliverymanStatus status;

    /**
     * 时间
     */
    @TableField(value = "`date`")
    private Date date;
}